<?php
class Application_Model_DbTable_comment extends Application_Model_DbTable_DomainObject{
	
	protected $_name = 'uuch_comment';
	
	public function getMapper(){
		return array('id','userid','username','area','type','code','logistics','service','comment','createtime','parentid','reply','replyTime','points');
	}
        
        public  function getItemCount(){
            
            $db = $this->getAdapter();
            
            $result = $db->query('select count(*) from '.$this->_name);                
            $c = $result->fetchColumn();
            return $c;
        }
        
        
}